﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IPC.Communication.Framework.Algorithms.ConnectPool;

namespace IPC.Communication.Framework.Enthernet.Redis
{
    public class IRedisConnector : IConnector
    {
        public bool IsConnectUsing
        {
            get;
            set;
        }

        public string GuidToken
        {
            get;
            set;
        }

        public DateTime LastUseTime
        {
            get;
            set;
        }

        public RedisClient Redis
        {
            get;
            set;
        }

        public void Close()
	    {
            if (Redis != null)
            {
                Redis.ConnectClose();
            }
	    }

        public void Open()
	    {
            if (Redis != null)
            {
                Redis.SetPersistentConnection();
            }
	    }
    }
}
